import Request from './request'

const url = '/api/auth/restaurants'
export default {
  createRestaurant(building, floor, type, resColor) {
    return Request.put(url, {b: building, f: floor, t: type, r: resColor})
  },
  setRestaurant(building, floor, {level, chefID, chefLevel, chefSkills, startTime}) {
    return Request.post(url, { b: building, f: floor, l: level, cid: chefID, cl: chefLevel, cs: chefSkills, st: startTime})
  },
  getRestaurant(building, floor) {
    return Request.get(url, {b: building, f: floor})
  }
}